import ColSetting from "@/components/proTable/components/colSetting.vue"

export interface ProTableType {
    labelWidth:string
    index?:boolean
    selection?:boolean
    expand?:boolean
    columns:SearchFormType[]
}

export interface Page {
    pageSize:number
    pageNumber:number
    pageSizes:Array<number>,
    total:number
}

export interface SearchFormType{
    label:string
    prop:string
    flex?:'right'|'left'|'none'
    search?:SearchStyle
    searchSlot?:boolean,
    width?:string
    align?:'right'|'left'|'center',
    slot?:boolean
    isShow?:boolean
    sort?:boolean
    isSearch?:boolean
}

interface SearchStyle{
    el:'input'|'select'|'date'
    options?:any
}

export type ColSettingType = InstanceType<typeof ColSetting>